home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / System7 tools / Frontier / Frontier SDK 2.1 / Toolkits / Applet Toolkit / appletquickdraw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-11  |  1.9 KB  |  116 lines  |  [TEXT/KAHL]

  1.  
  2. /*© Copyright 1988-1992 UserLand Software, Inc.  All Rights Reserved.*/
  3.  
  4. #define quickdrawinclude
  5.  
  6.  
  7. #ifndef appletdefsinclude
  8.  
  9.     #include "appletdefs.h"
  10.     
  11. #endif
  12.  
  13.  
  14. #define blackindex 0
  15. #define whiteindex 1
  16. #define lighterblueindex 2 /*a very common color in System 7 culture*/
  17. #define lightblueindex 2 /*another very common color*/
  18.  
  19.  
  20. boolean pushstyle (short, short, short);
  21.  
  22. boolean popstyle (void);
  23.  
  24. short getmenubarheight (void);
  25.  
  26. void setrect (Rect *, short , short , short , short);
  27.  
  28. void eraserect (Rect);
  29.  
  30. void movepento (short, short);
  31.  
  32. void pendrawline (short, short);
  33.  
  34. void invalrect (Rect);
  35.  
  36. boolean emptyrect (Rect);
  37.  
  38. boolean rectlessthan (Rect, Rect);
  39.  
  40. void dropshadowrect (Rect, short, boolean);
  41.  
  42. void invaldropshadow (Rect, short);
  43.  
  44. boolean pushforecolor (short);
  45.  
  46. boolean popforecolor (void);
  47.  
  48. boolean pushbackcolor (short);
  49.  
  50. boolean popbackcolor (void);
  51.  
  52. boolean pushcolors (short, short);
  53.  
  54. boolean popcolors (void);
  55.  
  56. boolean systemhascolor (void);
  57.  
  58. boolean getcolorpalette (WindowPtr);
  59.  
  60. boolean openbitmap (Rect, WindowPtr);
  61.  
  62. void closebitmap (WindowPtr);
  63.  
  64. boolean plotsmallicon (Rect, short, short, boolean);
  65.  
  66. boolean colorenabled (void);
  67.  
  68. void constraintodesktop (Rect *);
  69.  
  70. void drawicon (Rect, short, Handle);
  71.  
  72. void localtoglobalrect (Rect *);
  73.  
  74. short pointdist (Point, Point);
  75.  
  76. boolean pushpen (void);
  77.  
  78. boolean poppen (void);
  79.  
  80. boolean pushmacport (GrafPtr);
  81.  
  82. boolean popmacport (void);
  83.  
  84. boolean pushclip (Rect);
  85.  
  86. boolean popclip (void);
  87.  
  88. void centerrect (Rect *, Rect);
  89.  
  90. void ellipsize (Str255, short);
  91.  
  92. void centerstring (Rect, bigstring);
  93.  
  94. void centerwindow (WindowPtr, Rect);
  95.  
  96. void grayrect (Rect);
  97.  
  98. boolean pointinrect (Point, Rect);
  99.  
  100. void validrect (Rect);
  101.  
  102. boolean pushemptyclip (void);
  103.  
  104. void globaltolocalpoint (WindowPtr, Point *);
  105.  
  106. void localtoglobalpoint (WindowPtr, Point *);
  107.  
  108. void zerorect (Rect *);
  109.  
  110. boolean equalrects (Rect, Rect);
  111.  
  112. void scrollrect (Rect, short, short);
  113.  
  114.  
  115.  
  116.